import { createStore, combineReducers, applyMiddleware, compose } from "redux";
import * as reducer from "../Reducer/reducer";
import thunk from "redux-thunk";
import {isServer} from "../../tools/utils";
const composeEnhancers =  isServer ?  compose : window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
let store = createStore(
	combineReducers(reducer),
	composeEnhancers(applyMiddleware(thunk))
);
export default store;
